package org.melanesia.beans.exceptions;

/**
 * Thrown in bean mapper when error occurs during getting / setting property
 * value.
 *
 * @author marcin.kielar
 */
public class PropertyAccessException extends BeanAccessException {

    /** Serial version uid for serialization. */
    private static final long serialVersionUID = -8782288743049502427L;

    /**
     * Constructs new {@link PropertyAccessException} with the specified detail
     * message.
     *
     * @param message
     *            message
     */
    public PropertyAccessException(final String message) {
        super(message);
    }

    /**
     * Constructs new {@link PropertyAccessException} with the specified detail
     * message and a cause.
     *
     * @param message
     *            message
     * @param cause
     *            the cause
     */
    public PropertyAccessException(final String message, final Throwable cause) {
        super(message, cause);
    }

    /**
     * Constructs new {@link PropertyAccessException} with the specified cause.
     *
     * @param cause
     *            the cause
     */
    public PropertyAccessException(final Throwable cause) {
        super(cause);
    }
}
